package c.c0der.jsgl.jso;

import android.os.Build;
import android.util.Log;

import org.mozilla.javascript.ScriptableObject;
import org.mozilla.javascript.annotations.JSFunction;

public class JSOAndroid extends ScriptableObject {
    public JSOAndroid() {
        putProperty(this, "version_sdk", Build.VERSION.SDK_INT);
        putProperty(this, "version_release", Build.VERSION.RELEASE);
    }

    @Override
    public String getClassName() {
        return "android";
    }


    @JSFunction
    public void logd(String tag, String msg) {
        Log.d(tag, msg);
    }
}
